<html>
	<head>
		<title>Prova del paquet Image_Barcode</title>
	<head>
	<body>
		<form name="form_dni" action="index.php" method="post">
			D.N.I:<input name="dni" type=text /></br>
			<input name="envia" type="submit" value="Genera Codi de Barres"/>
			<input name="reset" type="reset" value="Neteja dades"/>
		</form>
<?php 
	if ($_POST['dni']!="")
		echo "<br/><img src=\"provbar.php?dni=" . $_POST['dni'] . "\" alt=\"Codi de barres\" />";
?>
	</body>
</html>
